package com.techq.weibo;

import org.apache.log4j.PropertyConfigurator;

import com.techq.weibo.robot.CrawlRobot;
import com.techq.weibo.robot.imp.SinaWeiboCrawler;
import com.techq.weibo.share.Share;
import com.techq.weibo.share.exception.ShareException;
import com.techq.weibo.share.imp.SinaShare;

/**
 * Hello world!
 *
 */
public class App 
{
	static {
		PropertyConfigurator.configure("conf/log4j.properties");
	}
	
	
	
    public static void main( String[] args )
    {
    	
    	CrawlRobot robot = new SinaWeiboCrawler();
        Share sinaShare = new SinaShare();
        try {
			sinaShare.shareVideoWithoutComment("url", robot);
		} catch (ShareException e) {
			
			e.printStackTrace(System.out);
		}
    }
}
